﻿using System;

namespace Amercom.Silverlight.Helpers.PanoramaCube
{
    public class PanoramaImageList
    {
        private Uri _frontFaceImage;
        public Uri FrontFaceImage
        {
            get
            {
                return _frontFaceImage;
            }
            set
            {
                _frontFaceImage = value;
            }
        }

        private Uri _rightFaceImage;
        public Uri RightFaceImage
        {
            get
            {
                return _rightFaceImage;
            }
            set
            {
                _rightFaceImage = value;
            }
        }

        private Uri _backFaceImage;
        public Uri BackFaceImage
        {
            get
            {
                return _backFaceImage;
            }
            set
            {
                _backFaceImage = value;
            }
        }

        private Uri _leftFaceImage;
        public Uri LeftFaceImage
        {
            get
            {
                return _leftFaceImage;
            }
            set
            {
                _leftFaceImage = value;
            }
        }

        private Uri _topFaceImage;
        public Uri TopFaceImage
        {
            get
            {
                return _topFaceImage;
            }
            set
            {
                _topFaceImage = value;
            }
        }

        private Uri _bottomFaceImage;
        public Uri BottomFaceImage
        {
            get
            {
                return _bottomFaceImage;
            }
            set
            {
                _bottomFaceImage = value;
            }
        }

        public bool HasAllImages
        {
            get
            {
                if (
                    this._backFaceImage != null
                    && this._bottomFaceImage != null
                    && this._frontFaceImage != null
                    && this._leftFaceImage != null
                    && this._rightFaceImage != null
                    && this._topFaceImage != null
                    )
                {
                    return true;
                }
                return false;                
            }
        }
    }
}
